/** @type {import('tailwindcss').Config} */
export default {
  content: [
    './app.vue',          // Nuxt 3 的入口组件
    './pages/**/*.{vue,js}',  // 所有页面
    './components/**/*.{vue,js}', // 所有组件
    './layouts/**/*.{vue,js}',   // 所有布局
    './plugins/**/*.{js,ts}',    // 所有插件
  ],
  safelist: [
    // 添加所有可能由 getRandomColorClass 和 getAccentColorClass 函数返回的类
    'bg-gradient-to-br',
    'from-indigo-500', 'to-pink-500',
    'from-emerald-500', 'to-blue-500',
    'from-orange-500', 'to-red-500',
    'from-pink-500', 'to-purple-600',
    'from-yellow-400', 'to-orange-500',
    'from-teal-400', 'to-indigo-600',
    'from-fuchsia-500', 'to-cyan-500',
    'from-amber-500', 'to-pink-500',
    'from-lime-400', 'to-teal-600',
    'from-rose-500', 'to-indigo-600',
    'bg-yellow-300', 'bg-pink-300', 'bg-emerald-300',
    'bg-indigo-300', 'bg-cyan-300', 'bg-amber-300',
    'bg-lime-300', 'bg-fuchsia-300', 'bg-sky-300', 'bg-rose-300'
  ],
  theme: {
    extend: {
      colors: {
        'light-bg': '#f7fafc',  // 浅色模式背景色
        'dark-bg': '#2d3748',   // 暗黑模式背景色
      },
    },
  },
  plugins: [
    require("daisyui"),
  ],
  daisyui: {
    themes: [
      "light", 
      "dark", 
    ],
  },
}
